
import grant from './grant.view.html';
import grantComp from './grantComp.view.html';
import grantTable from './grantTable.view.html';
import ctrl from './grant.ctrl';
import ctrlView from './grantView.ctrl';

export default ($stateProvider) => {
    "ngInject"
    $stateProvider
        .state({
            name: 'grant',
            url : '/home',
            controllerAs: 'vm',
            controller: ctrl,
            templateUrl: grant
        })
        .state({
            name: 'grant.org',
            url: '/sys/org',
            controllerAs: 'vm',
            controller: ctrlView,
            templateUrl: grantComp
        })
        .state({
            name: 'grant.user',
            url: '/sys/user',
            controllerAs: 'vm',
            controller: ctrlView,
            templateUrl: grantComp
        })
        .state({
            name: 'grant.role',
            url: '/sys/role',
            controllerAs: 'vm',
            controller: ctrlView,
            templateUrl: grantComp
        })
        .state({
            name: 'grant.order',
            url: '/order/manager',
            controllerAs: 'vm',
            controller: ctrlView,
            templateUrl: grantTable
        })
        .state({
            name: 'grant.orderlist',
            url: '/order/chart',
            controllerAs: 'vm',
            controller: ctrlView,
            templateUrl: grantTable
        })
}